<?php

use Biz\service\ShopInfo as sShopInfo;
/**
 * @deprecated
 */
class ChangeNickAction extends QueueActionPlugin
{
    public function main()
    {
        $uid = $this->getRequest()->getPost("uid");

        if ($uid) {
            sShopInfo::setShopNick($uid);
            $this->setSuccess();
        } else {
            throw new \Exception('uid不存在', -1);
        }
    }
}